home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / inventor / ivcalc / ivcalc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  2.8 KB  |  83 lines

  1. /*
  2.  * Copyright (C) 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17. /*
  18.  * ivcalc.h - header file from xcalc used for ivcalc
  19.  *
  20.  * Copyright 1989 by the Massachusetts Institute of Technology
  21.  */
  22.  
  23. #ifdef SIGNALRETURNSINT
  24. #define signal_t int
  25. #else
  26. #define signal_t void
  27. #endif
  28.  
  29. #define kRECIP 0    /* reciprocal */
  30. #define kSQR   1    /* square */
  31. #define kSQRT  2    /* square root */
  32. #define kCLR   3    /* clear */
  33. #define kOFF   4    /* clear and quit */
  34. #define kINV   5    /* inverse */
  35. #define kSIN   6    /* sine */
  36. #define kCOS   7    /* cosine */
  37. #define kTAN   8    /* tangent */
  38. #define kDRG   9    /* degree radian grad */
  39. #define kE     10    /* the natural number e */
  40. #define kEE    11    /* scientific notation */
  41. #define kLOG   12    /* logarithm */
  42. #define kLN    13    /* natural logarithm */
  43. #define kPOW   14    /* power */
  44. #define kPI    15    /* pi */
  45. #define kFACT  16    /* factorial */
  46. #define kLPAR  17    /* left paren */
  47. #define kRPAR  18    /* right paren */
  48. #define kDIV   19    /* division */
  49. #define kSTO   20    /* store */
  50. #define kSEVEN 21    /* 7 */
  51. #define kEIGHT 22    /* 8 */
  52. #define kNINE  23    /* 9 */
  53. #define kMUL   24    /* multiplication */
  54. #define kRCL   25    /* recall */
  55. #define kFOUR  26    /* 4 */
  56. #define kFIVE  27    /* 5 */
  57. #define kSIX   28    /* 6 */
  58. #define kSUB   29    /* subtraction */
  59. #define kSUM   30    /* summation */
  60. #define kONE   31    /* 1 */
  61. #define kTWO   32    /* 2 */
  62. #define kTHREE 33    /* 3 */
  63. #define kADD   34    /* addition */
  64. #define kEXC   35    /* exchange display and memory */
  65. #define kZERO  36    /* 0 */
  66. #define kDEC   37    /* decimal point */
  67. #define kNEG   38    /* negation */
  68. #define kEQU   39    /* equals */
  69. #define kENTR  40    /* enter */
  70. #define kXXY   41    /* exchange X and Y registers */
  71. #define kEXP   42    /* exponent */
  72. #define k10X   43    /* 10 raised to a power */
  73. #define kROLL  44    /* roll stack */
  74. #define kNOP   45    /* no operation */
  75. #define kBKSP  46    /* backspace */
  76.  
  77. #define XCalc_MEMORY    0    /* memory indicator */
  78. #define XCalc_INVERSE   1    /* inverse function indicator */
  79. #define XCalc_DEGREE    2    /* degree indicator */
  80. #define XCalc_RADIAN    3    /* radian indicator */
  81. #define XCalc_GRADAM    4    /* grad indicator */
  82. #define XCalc_PAREN    5    /* parenthesis indicator */
  83.